package com.totcy.atom.bean;

import android.support.annotation.NonNull;

public class SubjectBean implements Comparable<SubjectBean> {

    /**
     * id : 3
     * created_at : 1501466788
     * updated_at : 1501466788
     * name : 系统集成项目管理工程师
     * level : 2
     * papers_count : 38
     */

    private int id;
    private long created_at;
    private long updated_at;
    private String name;
    private int level;
    private int papersCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getCreated_at() {
        return created_at;
    }

    public void setCreated_at(long created_at) {
        this.created_at = created_at;
    }

    public long getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(long updated_at) {
        this.updated_at = updated_at;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getPapersCount() {
        return papersCount;
    }

    public void setPapersCount(int papersCount) {
        this.papersCount = papersCount;
    }

    @Override
    public int compareTo(@NonNull SubjectBean o) {
        return o.getLevel() - this.getLevel();
    }
}
